package com.trg.generaltool.controller;

import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: swaggerTest
 * Description:
 * date: 2021-03-04 22:19
 *      集成笔记：http://note.youdao.com/s/KRgyqiYz
 *      访问地址：http://localhost:8001/swagger-ui.html
 * @author tangrg
 * @since JDK 1.8
 */
@Api(tags = "EmpController", description = "EmpController | 通过员工表来测试swagger")
@RestController
@RequestMapping("/emp")
public class swaggerTest {


    @ApiOperation(value="分页查询", notes="分页查询",httpMethod = "POST")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "current", value = "当前页", dataType = "Long" ,paramType="form"),
            @ApiImplicitParam(name = "size", value = "每页显示的数量", dataType = "Long",paramType="form" )}
    )
    @PostMapping(value = "/pages")
    public void page(@ApiParam Long current, Long size) {
        System.out.println(current+":"+size);


    }}
